<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="jquery.js"></script>
    <script type="text/javascript">
      Promise.all([
        $.ajax({url: 'data/1.txt',dataType: 'json'}),
        $.ajax({url: 'data/2.txt',dataType: 'json'})
      ]).then(arr=>{
        //console.log(arr);
        let [data1,data2]=arr;
        console.log(data1,data2);
      },()=>{
        alert('error');
      });
    </script>
  </head>
  <body>

  </body>
</html>
